Skip to content

fix: distinguish between nil and non-nil allowed tools #977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

thedadams
Copy link
Contributor

If allowedTools is nil, then all tools are allowed. If allowed tools is non-nil and has length zero, then no tools are allowed.

If allowedTools is nil, then all tools are allowed. If allowed tools is
non-nil and has length zero, then no tools are allowed.

Signed-off-by: Donnie Adams <[email protected]>
@thedadams thedadams requested a review from g-linville May 30, 2025 14:11
@thedadams
Copy link
Contributor Author

Is this a good idea?

@g-linville
Copy link
Member

I think this makes sense.

@thedadams thedadams merged commit c810be4 into gptscript-ai:main May 30, 2025
10 checks passed
@thedadams thedadams deleted the non-nil-allowed-tools branch May 30, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants